home *** CD-ROM | disk | FTP | other *** search
- ANY(3I) Last changed: 4-13-99
-
-
- NNAAMMEE
- AANNYY - Determines whether any values are true
-
- SSYYNNOOPPSSIISS
- AANNYY (([MMAASSKK==]_m_a_s_k [,,[DDIIMM==]_d_i_m]))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, IRIX systems
-
- CF90, MIPSpro 7 Fortran 90
-
- SSTTAANNDDAARRDDSS
- Fortran
-
- DDEESSCCRRIIPPTTIIOONN
- The AANNYY intrinsic function determines whether any value is true in
- argument _m_a_s_k along dimension _d_i_m. It accepts the following
- arguments:
-
- _m_a_s_k Must be of type logical. It must not be a scalar.
-
- _d_i_m Must be a scalar. It must be an integer value in the range
- 1 <= _d_i_m <= _n, where _n is the rank of _m_a_s_k. The
- corresponding actual argument must not be an optional dummy
- argument.
-
- AANNYY is a transformational function. The name of this intrinsic cannot
- be passed as an argument.
-
- RREETTUURRNN VVAALLUUEESS
- The result is type logical. It is a scalar result if _d_i_m is absent or
- if _m_a_s_k has rank one. Otherwise, the result is an array of rank _n-1
- and of shape (_d , _d , ..., _d , _d , ..., _d ),
- 1 2 _d_i_m-1 _d_i_m+1 _n
- where (_d , _d , ..., _d )
- 1 2 _n
- is the shape of _m_a_s_k.
-
- The result of AANNYY((_m_a_s_k)) has the value TTRRUUEE if any element of _m_a_s_k is
- true. The result has the value FFAALLSSEE if no elements of _m_a_s_k are true
- or if _m_a_s_k is a zero-sized array.
-
- If _m_a_s_k has rank one, AANNYY((_m_a_s_k,,_d_i_m) has a value equal to that of
- AANNYY((_m_a_s_k)). Otherwise, the value of
- element (_s , _s , ..., _s , _s , ..., _s )
- 1 2 _d_i_m-1 _d_i_m+1 _n
- of AANNYY((_m_a_s_k,,_d_i_m) is equal to
- AANNYY((_m_a_s_k (_s , _s , ..., _s , : , _s , ..., _s )).
- 1 2 _d_i_m-1 _d_i_m+1 _n
-
- EEXXAAMMPPLLEESS
- Example 1:
-
- * AANNYY (( ((// ..TTRRUUEE..,, ..FFAALLSSEE..,, ..TTRRUUEE.. //)) )) is ..TTRRUUEE...
-
- * AANNYY ((_m_a_s_k) is ..FFAALLSSEE.. when _m_a_s_k is a zero-sized array.
-
- Example 2: Assume that BB and CC are arrays as follows:
-
- BB is the following array:
-
- | 1 3 5 |
- | 2 4 6 |
-
- CC is the following array:
-
- | 0 3 5 |
- | 7 4 8 |
-
- * AANNYY (( BB ..NNEE.. CC )) is ..TTRRUUEE...
-
- * AANNYY (( BB ..NNEE.. CC,, DDIIMM==11 )) is [[..TTRRUUEE..,, ..FFAALLSSEE..,, ..TTRRUUEE..]]
-
- * AANNYY (( BB ..NNEE.. CC,, DDIIMM==22 )) is [[..TTRRUUEE..,, ..TTRRUUEE..]]..
-
- * AANNYY (( CC ..EEQQ.. 11 )) is [[..FFAALLSSEE..]] because no elements of the mask are
- true.
-
- Example 3: Assume that array NN is as follows:
-
- | 0 1 2 3 |
- | 4 5 6 7 |
- | 8 9 0 1 |
-
- In an array section reference, you can expect the following results:
-
- * AANNYY((((NN((22::33,,22::44))..NNEE..00)))) is ..TTRRUUEE..
-
- * AANNYY((((NN((22::33,,22::44))..NNEE..00)),,DDIIMM==11)) is [[..TTRRUUEE..,, ..TTRRUUEE..,, ..TTRRUUEE..]]
-
- * AANNYY((((NN((22::33,,22::44))..NNEE..00)),,DDIIMM==22)) is [[..TTRRUUEE..,, ..TTRRUUEE..]]
-
- SSEEEE AALLSSOO
- _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
- man page.
-